<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="/WEB-INF/config/tld/fmt.tld" prefix="fmt"%>
<html>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<title>研发管理信息系统-登录</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #016aa9;
	overflow:hidden;
}
.STYLE1 {
	color: #000000;
	font-size: 12px;
}
-->
</style>

<script type="text/javascript">
   function setCodeImage(){
	   var kk = document.getElementById("image");
	   kk.src= kk.src + "?1=1";
	}
</script>
<body>
		<html:form styleId="usertableForm"
			action="login.do?method=userLogin">
			
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="962" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="235" background="images/login_03.gif" align="center"><font size="3" color="#ffffff"><strong>${message}</strong></font>	</td>
      </tr>
      <tr>
        <td height="53"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="394" height="53" background="images/login_05.gif">&nbsp;</td>
            <td width="206" background="images/login_06.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="16%" height="25"><div align="right"><span class="STYLE1">用户</span></div></td>
                <td width="57%" height="25"><div align="center">
                 <input  id="username" name="username"
													tabindex="1" style="width:105px; height:17px; background-color:#292929; border:solid 1px #7dbad7; font-size:12px; color:#6cd0ff">
                </div></td>
                <td width="27%" height="25"><input type="hidden" id="mac" name="mac"
													tabindex="1" value=""></td>
              </tr>
              <tr>
                <td height="25"><div align="right"><span class="STYLE1">密码</span></div></td>
                <td height="25"><div align="center">
                  <input  type="password" id="password" name="password"
													 tabindex="3"  style="width:105px; height:17px; background-color:#292929; border:solid 1px #7dbad7; font-size:12px; color:#6cd0ff">
                </div></td>
                <td height="25"><div align="left"><input type="image" src="images/dl.gif" width="49" height="18" border="0"></div></td>
              </tr>
            </table></td>
            <td width="362" background="images/login_07.gif">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="213" valign="top" background="images/login_08.gif"><table width="231" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="60" height="25"><div align="right" class="STYLE1">验证码</div></td>
            <td width="85" align="left"><div align="center">
              <input id="code" name="code"  style="width:60px; height:17px; background-color:#292929; border:solid 1px #7dbad7; font-size:12px; color:#6cd0ff" maxlength="4" tabindex="3">
            &nbsp;</div></td>
            <td width="86" align="left"><span class="loginOutput" id="msgIdCode"><a href="#"
													onClick="setCodeImage()"><img border=0
															src="<%=path%>/valid_img" width="54" height="20"
															id="image"></a></span></td>
          </tr>
          
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<iframe  src="mac.html" height="0" width="0"></iframe>
</html:form>
		<script>
			document.getElementById("mac").value=unescape(MACAddr);
		</script>
</body>
</html>
